let stsus = 
	[
		{label:'未通知',value:0},
		{label:'已通知',value:1},
		{label:'通知异常',value:2},
	]

const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{
			label: '随机编号',
			prop: 'randomNo',
		},
		{
			label: '模板名称',
			prop: 'templateName',
		},
		{
			label: '模版内容',
			prop: 'templateContent',
		},
		{
			label: '发送方',
			prop: 'sender',
		},
		{
			label: '发送方名称',
			prop: 'senderName',
		},
		{
			label: '接收方',
			prop: 'acceptor',
		},
		{
			label: '接收方名称',
			prop: 'acceptorName',
		},
		{
			label: '通知渠道',
			prop: 'informChannel',
			custome:'tag',
			dicData:[
				{ label: 'web平台', value: 0 },
				{ label: 'app', value: 1 },
				{ label: '短信', value: 2 },
				{ label: '邮箱', value: 3 },
			]
		},
		{
			label: '通知状态',
			prop: 'informState',
			custome: 'tag',
			dicData:stsus
		},
		{
			label: '发送时间',
			prop: 'sendTime',
		},

		{
			label: '创建人',
			prop: 'createUserName',
		},
		{
			label: '创建时间',
			prop: 'createTime',
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}

export const formConfig = {
	label: '数据管理设置',
	prop: 'base0',
	inline: false,
	showBtn: true,
	labelPosition: 'right',
  labelWidth:'140px',
	column: [
		{
			label: '模板名称',
			prop: 'templateName',
			type: 'input',
			span: 8,
		},
		{
			label: '模版内容',
			prop: 'templateContent',
			type: 'input',
			span: 8,
		},
		{
			label: '发送方',
			prop: 'sender',
			type: 'input',
			span: 8,
		},
		{
			label: '发送方名称',
			prop: 'senderName',
			type: 'input',
			span: 8,
		},
		{
			label: '接收方',
			prop: 'acceptor',
			type: 'input',
			span: 8,
		},
		{
			label: '接收方名称',
			prop: 'acceptorName',
			type: 'input',
			span: 8,
		},
		{
			label: '通知渠道',
			prop: 'informChannel',
			type: 'select',
			dicData:[
				{ label: 'web平台', value: 0 },
				{ label: 'app', value: 1 },
				{ label: '短信', value: 2 },
				{ label: '邮箱', value: 3 },
			],
			span: 8,
		},
		{
			label: '通知状态',
			prop: 'informState',
			type: 'select',
			dicData:stsus,
			multiple: false,
			filterKey: 'value',
			span: 8,
		},

		{
			label: '发送时间',
			prop: 'sendTime',
			type: 'datetime',
			format: 'YYYY年MM月DD HH:mm:ss',
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
			span: 8,
		},
	],
}
const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '过期通知表随机编号',
			prop: 'randomNo',
			span: 6,
		},
		{
			label: '模板名称',
			prop: 'templateName',
			span: 6,
		},
		{
			label: '模版内容',
			prop: 'templateContent',
			span: 6,
		},
		{
			label: '发送方',
			prop: 'sender',
			span: 6,
		},
		{
			label: '发送方名称',
			prop: 'senderName',
			span: 6,
		},
		{
			label: '接收方',
			prop: 'acceptor',
			span: 6,
		},
		{
			label: '接收方名称',
			prop: 'acceptorName',
			span: 6,
		},
		{
			label: '通知渠道',
			prop: 'informChannel',
			span: 6,
		},
		{
			label: '通知状态',
			prop: 'informState',
			type: 'select',
			dicData:stsus,
			multiple: false,
			filterKey: 'value',
			span: 6,
		},

		{
			label: '发送时间',
			prop: 'sendTime',
			type: 'datetime',
			format: 'YYYY年MM月DD日 HH:mm:ss',
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
			span: 6,
		},
	],
}
export const baseConfig: any = {
	pageName: '数据过期通知记录',
	addLabel: '添加',
	dictcodes: [],
	rowKey: 'id',
	tipLabel: 'templateName',
	api: {
		index: 'view_dataExpireInformRecord_page',
		// add: 'view_dataExpireInformRecord_add',
		// edit: 'view_dataExpireInformRecord_edit',
		delete: 'view_dataExpireInformRecord_del',
	},
	auth: {
		index: 'view_dataExpireInformRecord_page',
		// add: 'view_dataExpireInformRecord_add',
		// edit: 'view_dataExpireInformRecord_edit',
		delete: 'view_dataExpireInformRecord_del',
	},
	menuBtn: [
		{
			icon: 'detail',
			label: '详情',
			type: 'primary',
			operate: 'detail',
			auth: '',
			text: true,
			show: true,
		},
		{
			icon: 'delete',
			label: '删除',
			type: 'primary',
			operate: 'delete',
			auth: 'view_dataManagementSettings_del',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '65%',
	},
	detailConfig:{
		label: '数据管理设置',
	prop: 'base0',
	inline: false,
	showBtn: true,
	labelPosition: 'right',
  labelWidth:'140px',
	column: formConfig.column
	},
	searchConfig,
	tableConfig,
	formConfig,
}
